<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
        >
<h:head>
    <title>Loodle App</title>
    <title>Bootstrap, from Twitter</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta name="description" content=""/>
    <meta name="author" content=""/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="google-site-verification" content="ZvXRUUJrblCZvr5KwJWM8uJO0OWo-q9h2lUpBCWHOhQ"/>
    <link rel="stylesheet" type="text/css" href="#{request.contextPath}/css/openid.css"/>
    <link rel="stylesheet" type="text/css" href="#{request.contextPath}/css/bootstrap.css"/>
    <style>
        body {
            padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
        }
    </style>
    <link rel="stylesheet" type="text/css" href="#{request.contextPath}/css/custom.css"/>
    <h:outputScript library="primefaces" name="primefaces.js"/>
    <h:outputScript library="primefaces" name="jquery/jquery.js"/>
    <script src="#{request.contextPath}/js/bootstrap.js"/>
</h:head>

<h:body>
    <f:view locale="de_CH">

        <ui:insert name="metadata"/>


        <div class="navbar navbar-inverse navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                    <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </a>
                    <a class="brand" href="#">Loodel</a>

                    <div class="nav-collapse collapse">
                        <ul class="nav">
                            <li class="#{activePage == 'index' ? 'active' : ''}">
                                <a href="#{request.contextPath}/index.xhtml">Home</a></li>
                            <li class="#{activePage == 'create' ? 'active' : ''}">
                                <a href="#{request.contextPath}/create/createLearningEvent.xhtml">Create Learning Event</a>
                            </li>
                            <li class="#{activePage == 'edit' ? 'active' : ''}">
                                <a href="#{request.contextPath}/edit/learningEventAdmin.xhtml">Edit Learning Event</a>
                            </li>
                            <li class="#{activePage == 'vote' ? 'active' : ''}">
                                <a href="#{request.contextPath}/vote/learningEventVote.xhtml">Learning Event Voting</a>
                            </li>
                            <li class="#{activePage == 'schedule' ? 'active' : ''}">
                                <a href="#{request.contextPath}/schedule/memberSchedule.xhtml">Show My Schedule</a>
                            </li>
                        </ul>
                        <h:panelGroup rendered="#{!empty userContext.currentUser}">
                            <form class="navbar-form pull-right" action="#{request.contextPath}/logout">
                                <button type="submit" class="btn btn-primary">Sign out</button>
                            </form>
                        </h:panelGroup>

                    </div>
                    <!--/.nav-collapse -->
                </div>
            </div>
        </div>

        <div class="container">

            <ui:insert name="content"/>

        </div>
        <!-- /container -->
    </f:view>
</h:body>
</html>